package com.ynet.middleground.user.dao;

import com.ynet.middleground.user.bean.QueryUserInfoReq;
import com.ynet.middleground.user.dto.BaseicInfoAndRoleDTO;
import com.ynet.middleground.user.entity.UserBaseInformation;


import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户信息基础主表 Mapper 接口
 * </p>
 *
 * @author Wangxz
 * @since 2019-11-01
 */
public interface UserBaseInformationMapper extends BaseMapper<UserBaseInformation> {
    //根据userId查询企业用户
    UserBaseInformation getUserByUserIdAndType(@Param("userId") Integer userId,@Param("userType") String userType);
  //根据userId查询企业用户
    UserBaseInformation getUserByUserId(@Param("userId") Integer userId);
    //用户信息查看
    IPage<UserBaseInformation> getUserInfo(Page<UserBaseInformation> page,@Param("user") QueryUserInfoReq requestObject);

    List<Map<String,String>> getUserIdListAboutCloudPlatform();
}
